package sonet;
import java.util.*;

/** Class PublicationComponent. */
abstract class PublicationComponent implements Entity{

	
	private List<String> _comments = new ArrayList<String>();
	private int _upRate = 0;
	private int _downRate = 0;
	private Permission _access = new Permission();
	
/** Get rates. */	
	int getUpRate(){ return _upRate;}
	int getDownRate(){ return _downRate;}	
	
/** Rate a Publication. */	
	void rate(int r){
		if( r > 0){ _upRate += r;}
		else if( r < 0){ _downRate -= r;}
	}
	
/** Comment a Publication. */	
	void comment(String c){
		_comments.add(c);
	}
}



